-
Notifications
You must be signed in to change notification settings - Fork 135
chore: rename retry -> hibernate in runner protocol #3473
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: rename retry -> hibernate in runner protocol #3473
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
3 Skipped Deployments
|
|
Warning This pull request is not mergeable via GitHub because a downstack PR is open. Once all requirements are satisfied, merge this PR as a stack on Graphite.
How to use the Graphite Merge QueueAdd the label merge-queue to this PR to add it to the merge queue. You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Code ReviewSummaryThis PR performs a straightforward renaming of the Positive Aspects ✅
Issues Found 🔍1. Unrelated Import Reordering (Minor)File: The import order change appears unrelated to the PR's purpose: -use base64::prelude::BASE64_STANDARD;
use base64::Engine;
+use base64::prelude::BASE64_STANDARD;Recommendation: This formatting change should either be:
2. Unrelated Formatting Changes (Minor)File: The multiline formatting of the -"/actors/{}/kv/keys/{}", path.actor_id, urlencoding::encode(&path.key)
+&format!(
+ "/actors/{}/kv/keys/{}",
+ path.actor_id,
+ urlencoding::encode(&path.key)
+)Recommendation: Consider reverting this change to keep the PR focused on the 3. Assert Function and Whitespace Changes (Minor)File: Multiple unrelated changes:
Recommendation: While these are generally good cleanups:
Per CLAUDE.md: "Do not run ./scripts/cargo/fix.sh. Do not format the code yourself." These formatting changes may have been unintentional. Recommendations 📝
Security & Performance ✅
Overall AssessmentThis is a clean refactoring PR that improves code clarity. The core change (rename) is well-executed and comprehensive. The only concerns are minor unrelated formatting changes that could be cleaned up to keep the PR focused. Recommendation: Approve with minor cleanup suggestions. |
9b619f4 to
267ddc0
Compare
7ec4550 to
bbe84e7
Compare
Code ReviewThank you for this PR! The rename from ✅ Strengths
🐛 Issues FoundCritical: Missing update in stringify.ts The file // Line 61-64
const { code, reason, retry } = kind.val;
const codeStr = code === null ? "null" : code.toString();
const reasonStr = reason === null ? "null" : `"${reason}"`;
return `ToServerWebSocketClose{code: ${codeStr}, reason: ${reasonStr}, retry: ${retry}}`;This should be updated to: const { code, reason, hibernate } = kind.val;
// ...
return `ToServerWebSocketClose{code: ${codeStr}, reason: ${reasonStr}, hibernate: ${hibernate}}`;Location: 📝 Minor Observations
✅ Security & Performance
🧪 Testing RecommendationGiven that this is a protocol-level change:
SummaryThis is a solid refactoring that improves code clarity. The main action item is to fix the missing rename in |
Code ReviewThis PR renames the Positives
Issues Found
SecurityNo security concerns identified. This is a straightforward rename that doesn't change the protocol's security properties. PerformanceNo performance impact - this is a pure rename. Recommendations
SummaryThis is a good refactoring that improves code clarity. However, there's at least one file (stringify.ts) that was missed and will cause a compilation error. The PR should not be merged until that's fixed. |
bbe84e7 to
e83ac9b
Compare
PR Review: Rename retry -> hibernate in runner protocolSummaryThis PR renames the retry field to hibernate in the WebSocket close message of the runner protocol. This is a good semantic improvement as hibernate more accurately describes the intent of persisting WebSocket state for later resumption. Code Quality - Strengths
Issues Found1. Bug: Incomplete rename in stringify.ts (line 61, 64) 2. Type inconsistency in websocket-tunnel-adapter.ts (line 20, 35) 3. Outdated comment in tunnel.ts (line 80) 4. Unrelated formatting changes Security and Performance
Test Coverage
Action ItemsMust Fix: Update stringify.ts and websocket-tunnel-adapter.ts to use hibernate VerdictGood refactoring that improves code clarity! Just needs completion of the rename in a couple of TypeScript files to maintain consistency. |
267ddc0 to
650a53e
Compare
e83ac9b to
00cd5f2
Compare
274d094 to
d44f1d1
Compare
666b02e to
32b420c
Compare
d44f1d1 to
274d094
Compare
PR Review: Rename
|
PR Review: Rename retry -> hibernate in runner protocolOverviewThis PR renames the Code Quality ✅The changes are well-structured and follow the repository's conventions:
Issues Found 🔴1. Incomplete Renaming in
|
Code ReviewThis PR renames the What's Good
Critical Issue FoundMissing Update in TypeScript Stringify File The file Line 61 needs: Other IssuesComment Position: In pegboard-gateway/src/lib.rs:404-408, the "Successful closure" comment was moved. Consider clarifying which branch is the successful closure. Formatting Changes: The PR includes unrelated whitespace changes in tunnel.ts (lines 404-405, 611). Consider removing these. Test Naming: The test Security and Performance
StatusChanges Requested - stringify.ts must be updated before merging. |
274d094 to
d44f1d1
Compare
32b420c to
666b02e
Compare
Code ReviewSummaryThis PR renames the 'retry' field to 'hibernate' in the runner protocol's ToServerWebSocketClose message. The change is a straightforward semantic rename that better reflects the intent of the field - indicating whether the WebSocket connection should hibernate rather than simply retry. Positive Aspects
Issues Found1. Unintentional Formatting Changes (Minor)The PR includes unintentional whitespace changes in TypeScript files that should be excluded: tunnel.ts:404-405 - Changed from () => {} to () => { } (added space before closing brace) According to CLAUDE.md, the project prefers not to mix formatting changes with semantic changes. These should be reverted to keep the diff focused on the actual rename. 2. Comment Placement Changed (Minor)In pegboard-gateway/src/lib.rs:407, the comment // Successful closure was moved from line 405 (before the if statement) to line 407 (in the else block). While this might be more accurate placement, it's an unrelated change that should either be mentioned in the commit message or be kept in the original position to minimize diff noise. Recommendations
Security ConsiderationsNo security concerns identified. The change is a pure rename with no behavioral modifications. Performance ConsiderationsNo performance impact. The field size and serialization remain identical. Final VerdictThis is a solid refactoring PR that improves code clarity. The main issues are minor formatting changes that should be cleaned up. Once the unintentional formatting changes are reverted, this is ready to merge. Suggested Action: Request changes to revert formatting-only modifications, then approve. |
Code Review: Rename retry -> hibernate in runner protocolThank you for this PR! The rename from retry to hibernate is a good change for clarity. However, I found several locations where the old retry naming was not updated: Issues Found
Code QualityGood aspects:
Minor formatting inconsistency in tunnel.ts:609-611 where indentation style changed from tabs to spaces. RecommendationPlease update the three locations mentioned above to ensure consistency across the codebase. After fixing these issues, the PR will be ready to merge. Review generated by Claude Code |
666b02e to
32b420c
Compare
d44f1d1 to
274d094
Compare
Code ReviewThis PR renames the Strengths
Issues FoundCRITICAL - Missed Update in stringify.ts The stringify function still references the old field name at Minor - Comment Update The comment in Other Observations
Recommendations
SummaryThis is a good refactoring that improves code clarity. The implementation is mostly complete and handles backward compatibility correctly. However, there is one critical bug in the stringify function that needs to be fixed before merging. |
Code ReviewSummaryThis PR renames the ✅ Strengths
🔍 Observations
🎯 RecommendationsMinor (Optional):
✅ Final AssessmentApproved - This is a clean, well-executed refactoring that improves code clarity. The rename is applied consistently across the entire codebase with proper backward compatibility handling. The only minor issue is some incidental formatting changes, but these don't affect functionality. Testing Recommendations:
|
274d094 to
d44f1d1
Compare
PR Review: Rename retry -> hibernate in runner protocolSummaryThis PR renames the ✅ Positive Aspects
|
Merge activity
|

No description provided.